package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSgazhtgcMapper;
import com.ruoyi.gcgl.domain.GcProjectSgazhtgc;
import com.ruoyi.gcgl.service.IGcProjectSgazhtgcService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工安装合同施工过程Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-11
 */
@Service
public class GcProjectSgazhtgcServiceImpl implements IGcProjectSgazhtgcService 
{
    @Autowired
    private GcProjectSgazhtgcMapper gcProjectSgazhtgcMapper;

    /**
     * 查询施工安装合同施工过程
     * 
     * @param id 施工安装合同施工过程主键
     * @return 施工安装合同施工过程
     */
    @Override
    public GcProjectSgazhtgc selectGcProjectSgazhtgcById(Long id)
    {
        return gcProjectSgazhtgcMapper.selectGcProjectSgazhtgcById(id);
    }

    /**
     * 查询施工安装合同施工过程列表
     * 
     * @param gcProjectSgazhtgc 施工安装合同施工过程
     * @return 施工安装合同施工过程
     */
    @Override
    public List<GcProjectSgazhtgc> selectGcProjectSgazhtgcList(GcProjectSgazhtgc gcProjectSgazhtgc)
    {
        return gcProjectSgazhtgcMapper.selectGcProjectSgazhtgcList(gcProjectSgazhtgc);
    }

    /**
     * 新增施工安装合同施工过程
     * 
     * @param gcProjectSgazhtgc 施工安装合同施工过程
     * @return 结果
     */
    @Override
    public int insertGcProjectSgazhtgc(GcProjectSgazhtgc gcProjectSgazhtgc)
    {
        return gcProjectSgazhtgcMapper.insertGcProjectSgazhtgc(gcProjectSgazhtgc);
    }

    /**
     * 修改施工安装合同施工过程
     * 
     * @param gcProjectSgazhtgc 施工安装合同施工过程
     * @return 结果
     */
    @Override
    public int updateGcProjectSgazhtgc(GcProjectSgazhtgc gcProjectSgazhtgc)
    {
        return gcProjectSgazhtgcMapper.updateGcProjectSgazhtgc(gcProjectSgazhtgc);
    }

    /**
     * 批量删除施工安装合同施工过程
     * 
     * @param ids 需要删除的施工安装合同施工过程主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtgcByIds(String ids)
    {
        return gcProjectSgazhtgcMapper.deleteGcProjectSgazhtgcByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工安装合同施工过程信息
     * 
     * @param id 施工安装合同施工过程主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtgcById(Long id)
    {
        return gcProjectSgazhtgcMapper.deleteGcProjectSgazhtgcById(id);
    }
}
